﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GiMess
{
    public partial class NewAccForm : Form
    {
        public NewAccForm()
        {
            InitializeComponent();
        }

        private void Finish_Click(object sender, EventArgs e)
        {
            if (passwordBox.Text != repasswordBox.Text)
            {
                MessageBox.Show("Passwords do not match");
                return;
            }
            GiNetClient.Instance.Connect();
            GiNetClient.Instance.CreateAccount(userNameBox.Text, passwordBox.Text, firstNameBox.Text, lastNameBox.Text, emailBox.Text);
        }

        //TODO de pus restrictii pe textboxuri
    }
}
